package cn.shop.msgs;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author : 李一涵
 * @date : Created in 2021-12-21 14:44
 * @description :
 */

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class PartitionDeleteMsg extends BaseMsg {

    public final static String TOPIC = "shop-topic-partition-delete";

    public final static String TAG = "partition-delete";
    public final static String DESTINATION = TOPIC + ":" + TAG;

    private long uid;
    private String ip;
    private int port;

    public static PartitionDeleteMsg start(){
        return new PartitionDeleteMsg();
    }

    @Override
    public PartitionDeleteMsg id(long... id) {
        super.id(id);
        return this;
    }

    @Override
    public PartitionDeleteMsg time(LocalDateTime time) {
        super.time(time);
        return this;
    }

    public PartitionDeleteMsg uid(long uid) {
        this.uid = uid;
        return this;
    }

    public PartitionDeleteMsg ip(String ip) {
        this.ip = ip;
        return this;
    }

    public PartitionDeleteMsg port(int port) {
        this.port = port;
        return this;
    }

}
